<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Daily Report</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 20px;
        }
        h1, h2 {
            text-align: center;
            color: #333;
        }
        table {
            width: 80%;
            margin: 20px auto;
            border-collapse: collapse;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        th, td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #4CAF50;
            color: white;
        }
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        .navbar {
            text-align: center;
            margin-bottom: 20px;
        }
        .navbar a {
            margin: 0 10px;
            text-decoration: none;
            color: #007bff;
            font-weight: bold;
        }
        .navbar a:hover {
            text-decoration: underline;
        }
        .edit-button {
            text-decoration: none;
            color: #28a745;
            font-weight: bold;
        }
        .edit-button:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
<div class="navbar">
    <a href="{{ url_for('dashboard') }}">Dashboard</a>
    <a href="{{ url_for('new_ticket') }}">New Ticket</a>
    <a href="{{ url_for('report') }}">Daily Report</a>
    <a href="{{ url_for('logout') }}">Logout</a>
</div>
    <h1>Daily Report</h1>
    <h2>Assignee Report</h2>
    <table>
        <thead>
            <tr>
                <th>Assignee</th>
                <th>Ticket Count</th>
            </tr>
        </thead>
        <tbody>
            {% for assignee, count in assignee_report.items() %}
            <tr>
                <td>{{ assignee }}</td>
                <td>{{ count }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
    <h2>Category Report</h2>
    <table>
        <thead>
            <tr>
                <th>Category</th>
                <th>Ticket Count</th>
            </tr>
        </thead>
        <tbody>
            {% for category, count in category_report.items() %}
            <tr>
                <td>{{ category }}</td>
                <td>{{ count }}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</body>
</html>